package com.itheima.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itheima.domain.User;
import com.itheima.mapper.UserMapper;
import com.itheima.service.UserService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 自定义业务接口实现类
 *
 * @Author mr.wu
 * @Date 2024-11-8 16:19
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

    @Override
    public List<User> findPage(Integer pageNo, Integer pageSize) {


//        List<User> userList1 = this.list(Wrappers.<User>lambdaQuery().between(User::getAge, 20, 30));
//
//
//        List<User> userList2 = this.lambdaQuery()
//                .between(User::getAge, 20, 30)
//                .list();

//        LambdaUpdateWrapper<User> updateWrapper = Wrappers.<User>lambdaUpdate()
//                .set(User::getPassword, "123")
//                .eq(User::getName, "测试用户5");
//        boolean result1 = this.update(updateWrapper);

//        boolean result2 = this.lambdaUpdate()
//                .set(User::getPassword, "123")
//                .eq(User::getName, "测试用户5")
//                .update();


        return null;
    }
}
